﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using RoadTeam.Enums;
using System.Reflection;

namespace RoadTeam.SysInterface
{
    public static partial class FactoryClass
    {
        private static RoadTeam.SysInterface.ICsValidateRoomPic _iCsValidateRoomPic = null;

        public static ICsValidateRoomPic CreateCsValidateRoomPic()
        {
            if (_iCsValidateRoomPic == null)
            {
                string className = GlobalConfig.RtSystemPath + ".CS.HomeInspection.TbCsValidateRoomPic_Sys";
                _iCsValidateRoomPic = (ICsValidateRoomPic)Assembly.Load(GlobalConfig.RtSystemPath).CreateInstance(className);
            }
            return _iCsValidateRoomPic;
        }
    }

    public interface ICsValidateRoomPic
    {
       DataTable GetEmptyTable();
        /// <summary>
        /// 插入验房单图片
        /// </summary>
        /// <param name="dt">验房图片信息</param>
        /// <returns></returns>
       bool Insert(DataTable dt);
    }
}
